
var fs = require('fs');

function base64_encode(file) {
    var bitmap = fs.readFileSync(file);
    return 'data:text/css;base64,' + new Buffer(bitmap).toString('base64');
}
console.log(base64_encode('./wxlogin.css'))